<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title><{$title}></title>
    <link rel="Shortcut Icon" href="__IMG__/favicon.ico" type="image/x-icon"/>
    <meta name="keywords" content="问答,问答社区,你问我答,支招,好主意"/>
    <meta name="description" content="支招网.上支招,你问,大家来支招.问答社区。"/>
    <link type="text/css" href="__STATIC__/Style/Css/base.css" rel="stylesheet" />
    <link type="text/css" href="__CSS__/public.css" rel="stylesheet" />
    <link type="text/css" href="__CSS__/list.css" rel="stylesheet" />
    <include file="Common:head" />
</head>
<body>
<div id="all">
    <div class="header mb20"  >
        <include file="Common:top"/>
    </div>
    <div id="header" class="mb20">
        <!-- header start -->
        <include file="Common:top" />
        <!-- header end -->
    </div>
    <div id="page" class="mc  cls">
        <!-- page start -->
        <div class="leftBox fl">
            <!--左边盒子开始-->
            <div class="addBoxWrap">
                <div class="addBox">
                    <div class="addBoxTop">
                        <div class="addBoxTopL fl"><img src="<{$userInfo.face}>" alt="" /></div>
                        <div class="addBoxTopR fr">
                            <h5><{$userInfo.username}></h5>
                            <p>发布新问题</p>
                        </div>
                        <div class="cb"></div>
                    </div>
                    <div class="addBoxCon">
                        <form action="<{:U(APP_NAME .'/List/handleAddAsk')}>" method="POST" name="addArticle">
                            <input type="hidden" name="uid" value="<{:session('uid')}>">
                            <ul>
                                <li>
                                    <span class="item3 fl"><b>*</b>标题</span>
                                    <input type="text" name="title" class="text1 fl" />
                                    <div class="msgContent fl none"></div>
                                    <div class="cb"></div>
                                </li>
                                <li>
                                    <span class="item3 fl"><b>*</b>分类</span>
                                    <select name="sort_id" class="select">
                                        <option value="0">请选择分类</option>
                                        <volist name="sortList" id="va">
                                            <option value="<{$va.id}>"><{$va.sort_name}></option>
                                        </volist>
                                    </select>
                                    <div class="msgContent fl none"></div>
                                    <div class="cb"></div>
                                </li>
                                <li>
                                    <span class="item3 fl"><b>*</b>悬赏</span>
                                    <select name="reward" class="select2">
                                        <option value="-1">请选择悬赏金币( 当前金币 <{$userInfo.point}> )</option>
                                        <option value="0" <elt name="userInfo['point']" value="0">disabled="disabled"</elt>>0</option>
                                        <option value="5" <elt name="userInfo['point']" value="5">disabled="disabled"</elt>>5</option>
                                        <option value="10" <elt name="userInfo['point']" value="10">disabled="disabled"</elt>>10</option>
                                        <option value="15" <elt name="userInfo['point']" value="15">disabled="disabled"</elt>>15</option>
                                        <option value="20" <elt name="userInfo['point']" value="20">disabled="disabled"</elt>>20</option>
                                        <option value="30" <elt name="userInfo['point']" value="30">disabled="disabled"</elt>>30</option>
                                        <option value="50" <elt name="userInfo['point']" value="50">disabled="disabled"</elt>>50</option>
                                        <option value="100" <elt name="userInfo['point']" value="100">disabled="disabled"</elt>>100</option>
                                    </select>
                                    <div class="msgContent fl none"></div>
                                    <div class="cb"></div>
                                    <span class="item3 fl"><b>*</b>内容</span>
                                </li>
                                    <br/>
                                <!-- 加载百度UE编辑器 -->
                                    <!-- 加载编辑器的容器 -->
                                    <script id="container" name="content" type="text/plain" style="width:600px; height:220px;"></script>
                                    <!-- 编辑器配置文件 -->
                                    <script type="text/javascript" src="__STATIC__/Editor/ueditor.config.js"></script>
                                    <!-- 编辑器源码文件 -->
                                    <script type="text/javascript" src="__STATIC__/Editor/ueditor.all.js"></script>
                                    <!-- 实例化编辑器 -->
                                    <script type="text/javascript">
                                        var ue = UE.getEditor('container',{
                                            toolbars: [
                                                ['undo','redo','fontfamily','fontsize','forecolor','bold','italic','insertorderedlist','justifyleft',
                                                    'justifycenter','autotypeset','simpleupload','insertvideo','scrawl','emotion','date','link','drafts','removeformat','horizontal','source','insertcode',]
                                            ],
                                            elementPathEnabled:false,
                                        });
                                    </script>
                                <!-- 加载百度UE编辑器END -->
                                    <div class="msgContent fl none"></div>
                                    <div class="cb"></div>
                                <li>
                                    <span class="item3 fl"></span>
                                    <br/>
                                    <input type="submit" value="提交" class="sub1 fl" />
                                    <div class="cb"></div>
                                </li>
                            </ul>
                        </form>
                    </div>
                </div>
            </div>
            <!--左边盒子结束-->
        </div>
        <div class="rightBox fr">
            <!--右边盒子开始-->
            <div class="tipBox">
                <div class="tipTitle">发布问题</div>
                <div class="tipCon">
                    <ul>
                        <li>请完整输入问题的标题，悬赏，内容，并选择恰当的分类；</li>
                        <li>乱发问题，干扰网站内容的用户，会受到文章删除，账号锁定的惩罚；</li>
                    </ul>
                </div>
            </div>
            <!--右边盒子结束-->
        </div>
        <div class="cb"></div>
        <!-- page end -->
    </div>
    <div id="footer" class="mc cls">
        <!-- footer start -->
        <include file="Common:footer" />
        <!-- footer end -->
    </div>
</div>
</body>
</html>
